﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace restaurant.Pages
{
    public partial class Page6_Glucose_Readings : PhoneApplicationPage
    {
        public Page6_Glucose_Readings()
        {
            InitializeComponent();
        }
        dbFunctions dbfunc = new dbFunctions();
        private void hyperlinkButton1_Click(object sender, RoutedEventArgs e)
        {
            dbfunc.insert_into_devices(1, DevNameBox.Text, DevManfBox.Text);
            dbfunc.insert_into_glucosehist(1, 1, 1, float.Parse(ReadBox.Text), DateTime.Parse(TestdateBox.Text), "No Note", "Home");
        }
    }
}